<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::group(function(){
    Route::get('/', '/index');          //首页
    Route::get('index', '/index');      //首页
    // + --------------------------------------------------------------
    // + 会员
    Route::get('users', '/user/index');       //列表
    Route::get('show', '/user/show');         //会员查找
    Route::rule('reg', '/user/add');          //添加会员
    Route::post('user_update', '/user/update');//修改
    Route::rule('cost', '/cost/cost');         //金额充值
    Route::post('pay_out', '/cost/payout');    //用户消费

})->middleware(\app\middleware\Check::class);
